import Vue from 'vue'
import UI_Router from '@/views/UI_Router'
import Contacts from '@/views/Contacts'
import About from '@/views/About'
import All_contacts from '@/views/second/All_contacts'
import Alice from '@/views/second/Alice'
import Bob from '@/views/second/Bob'


//引入vueRouter

import VueRouter from 'vue-router'


//让vue使用vueRouter这个插件
Vue.use(VueRouter)
//创建路由实例
const router = new VueRouter({
  routes: [
   
    {
      path: '/UI_Router',
      component: UI_Router,
      
      
    },
    {
      path: '/Contacts',
      component: Contacts,
      children: [
        { path: '/second/All_contacts',
          component:All_contacts,
        },
        {
          path: '/second/Alice',
          component: Alice,
        },
        {
          path: '/second/Bob',
        component: Bob,}
      ]
    },
    {
      path: '/About',
      component:About
    },
       
         
      
    ]
})
       
export default router
